import request from '@/utils/request'

export function list(query) {
  return request({
    url: '/shop/customer/balance/list',
    method: 'get',
    params: query
  })
}

export function get(id) {
  return request({
    url: '/shop/customer/balance/' + id,
    method: 'get'
  })
}

export function update(data) {
  return request({
    url: '/shop/customer/balance',
    method: 'put',
    data: data
  })
}
export function balanceListAll(query) {
  return request({
    url: '/shop/customer/balance/listAll',
    method: 'get',
    params: query
  })
}

